import httpRequest from '@/http'

export function getQRCode(param: any) {
    return httpRequest.post('/portal/autoProcess/order/getQRCode', param);
}

export function submitSwapCompleteReq(param: any) {
    return httpRequest.post('/portal/autoProcess/order/swapComplete', param);
}

export function submitChargingCompleteReq(param: any) {
    return httpRequest.post('/portal/autoProcess/order/chargingComplete', param);
}

export function recordList() {
    return httpRequest.post('/portal/autoProcess/order/recordList');
}


export const submitSwapComplete = async (responseData) => {
    submitSwapCompleteReq(responseData).then((response) => {
        console.log("上报换电完成成功",)
    })
}

export const submitChargingComplete = async (responseData) => {
    submitChargingCompleteReq(responseData).then((response) => {
        console.log("上报充电完成成功",)
    })
}

